class GMVIPData {
  List<GMVIPModel>? vip;
  List<GMVIPModel>? data;
  List<GMVIPModel>? coins;

  GMVIPData({this.data, this.vip});

  GMVIPData.fromJson(Map<String, dynamic> json) {
    if (json['vip'] != null) {
      vip = <GMVIPModel>[];
      json['vip'].forEach((v) {
        vip!.add(GMVIPModel.fromJson(v));
      });
    }
    if (json['data'] != null) {
      data = <GMVIPModel>[];
      json['data'].forEach((v) {
        data!.add(GMVIPModel.fromJson(v));
      });
    }
    if (json['coins'] != null) {
      coins = <GMVIPModel>[];
      json['coins'].forEach((v) {
        coins!.add(GMVIPModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data1 = <String, dynamic>{};
    if (vip != null) {
      data1['vip'] = vip!.map((v) => v.toJson()).toList();
    }
    if (data != null) {
      data1['data'] = data!.map((v) => v.toJson()).toList();
    }
    if (coins != null) {
      data1['coins'] = coins!.map((v) => v.toJson()).toList();
    }
    return data1;
  }
}

class GMVIPModel {
  String? name;
  String? path;
  int? price1;
  int? price2;
  String? des;
  String? pid;
  String? count;

  GMVIPModel(
      {this.name,
      this.path,
      this.price1,
      this.price2,
      this.des,
      this.pid,
      this.count});

  GMVIPModel.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    path = json['path'];
    price1 = json['price1'];
    price2 = json['price2'];
    des = json['des'];
    pid = json['pid'];
    count = json['count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['name'] = name;
    data['path'] = path;
    data['price1'] = price1;
    data['price2'] = price2;
    data['des'] = des;
    data['pid'] = pid;
    data['count'] = count;
    return data;
  }
}
